<?php
	require "settings/config.php";
	require "layout.php";
	require "includes/sql_functions.php";
	require "includes/reg_functions.php";
	require "includes/session.php";
	
	oh_require_admin();
	
	render_header("Sending broadcast");
	
	if($_POST['subject']!="" && $_POST['text']!="")
	{
		email_broadcast($_POST['subject'],$_POST['text']);
	}
	
	echo "Broadcast sent<br />\n";
	make_button("Return to player management","players.php");	
	
	render_footer();
?>


